#include "monitor.h"

void monitor::prc_monitor() {
    printf("@%.3fns a=%x, b=%x, cin=%x, sum=%x, cout=%x \n", sc_time_stamp().to_default_time_units(), m_a.read(), m_b.read(), m_cin.read(), m_sum.read(), m_cout.read());
    ofh << "a=" << std::hex << m_a.read() << ", b=" << std::hex << m_b.read()   
        << ", cin=" << std::hex << m_cin.read() << ", sum=" << std::hex << m_sum.read()   
        << ", cout=" << std::hex << m_cout.read() << " \n";  
}